import java.io.*;
//字符流
public class demo3 {
    public static void main(String[] args) throws IOException {
        File file = new File("../test.txt");
        Writer writer = new FileWriter(file,true);
//        writer.write(65);
//        writer.write("你好");
//        writer.write("好好好".charAt(1));
//        char[] arr = {'好','好'};
//        writer.write(arr);
        Reader reader = new FileReader(file);
         char[] cbuf = new char[2];
        int n = reader.read(cbuf);
        for(int i = 0;i<n;i++){
            System.out.print(cbuf[i]+" ");
        }

        reader.close();
        writer.close();
    }
}
